stu_id = [101, 102, 103, 104, 105, 106, 107, 101, 108, 101]

# 1. *copy()*
# ↓的内容时为了验证 直接赋值(=)和copy()的区别 赋值(=)和copy()并不能等同
stu_id_matedata = stu_id
print("stu_id:", stu_id, '/n', 'stu_id-matedata:', stu_id_matedata)
stu_id.pop(1)
print("stu_id:", stu_id, '/n', 'stu_id-matedata:', stu_id_matedata)

# 使用copy()来复制列表
stu_id_matedata = stu_id.copy()
stu_id.pop(1)
print("stu_id:", stu_id, '/n', 'stu_id-matedata:', stu_id_matedata)

# 使用切片
stu_id_matedata = stu_id[:]
stu_id.pop(2)
print("stu_id:", stu_id, '/n', 'stu_id-matedata:', stu_id_matedata)